package com.yycx.module.bus.client.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yycx.common.mybatis.base.entity.AbstractEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.yycx.common.mybatis.annotation.TableAlias;

/**
 * 部门
 *
 * @author flyme
 * @date 2020-07-28
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("bus_dept")
@TableAlias("dept")
@ApiModel(value="BusDept对象", description="部门")
public class BusDept extends AbstractEntity {

private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "deptId", type = IdType.ASSIGN_ID)
    private Long deptId;

    @ApiModelProperty(value = "部门名称")
    private String deptName;

    private String businessType;

    @ApiModelProperty(value = "部门编码")
    private String deptCode;

    @ApiModelProperty(value = "编号")
    private String deptNo;

    @ApiModelProperty(value = "部门类型")
    private String deptType;

    @ApiModelProperty(value = "账套ID")
    private Long companyId;

    @ApiModelProperty(value = "机构ID")
    private Long organizationId;

    @ApiModelProperty(value = "资信天数")
    private Integer reputation;

    @ApiModelProperty(value = "资信额度")
    private BigDecimal reputationAmount;

    @ApiModelProperty(value = "负责人")
    private Long salemanId;

    @ApiModelProperty(value = "负责人姓名")
    private String saleManName;

    @ApiModelProperty(value = "省级公司")
    private Integer proLevel;


    @ApiModelProperty(value = "排序号")
    private String orderNum;

    @ApiModelProperty(value = "开票费率")
    private BigDecimal invoiceRate;

    @ApiModelProperty(value = "部门结算费率")
    private BigDecimal settleRate;

    @ApiModelProperty(value = "状态")
    private Integer deptState;

}
